"use strict";

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up(queryInterface, Sequelize) {
    await queryInterface.bulkInsert(
      "Comments",
      [
        {
          articleId: 1,
          content: '文章1的评论',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          articleId: 1,
          content: '还是文章1的评论',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
        {
          articleId: 2,
          content: '文章2的评论',
          createdAt: new Date(),
          updatedAt: new Date(),
        },
      ],
      {}
    );
  },

  async down(queryInterface, Sequelize) {
    await queryInterface.bulkDelete("Comments", null, {});
  },
};
